//
//  ZCButton.m
//  BaiSi
//
//  Created by 张灿 on 16/4/28.
//  Copyright © 2016年 张灿. All rights reserved.
//

#import "ZCButton.h"

@implementation ZCButton

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.imageView.x = (self.width - self.imageView.width) * 0.5;
    self.imageView.y = 0;
    
    [self.titleLabel sizeToFit];
    self.titleLabel.x = (self.width - self.titleLabel.width) * 0.5;
    self.titleLabel.y = self.height - self.titleLabel.height;
}

@end
